/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.logikas.hipokrates.server.dao;

import java.util.List;

/**
 * 
 * @author Cristian Rinaldi  cristian.rinaldi@logikas.com
 * @version
 * @date 23/05/2012
 * Logikas - Conectacto Ideas 
 */
public interface Dao<E, T> {
    
    void persist(E entity);
    
    void remove(E entity);
    
    List<E> findByExample(E entity);
    
    T findById(T id);
    
    List<E> findAll();
    
}
